import request from '@/utils/request'

// 查询会员开桌中商品消费列表
export function listMoneying(query) {
  return request({
    url: '/mahjong/moneying/list',
    method: 'get',
    params: query
  })
}

// 查询会员开桌中商品消费详细
export function getMoneying(id) {
  return request({
    url: '/mahjong/moneying/' + id,
    method: 'get'
  })
}

// 新增会员开桌中商品消费
export function addMoneying(data) {
  return request({
    url: '/mahjong/moneying',
    method: 'post',
    data: data
  })
}

// 修改会员开桌中商品消费
export function updateMoneying(data) {
  return request({
    url: '/mahjong/moneying',
    method: 'put',
    data: data
  })
}

// 删除会员开桌中商品消费
export function delMoneying(id) {
  return request({
    url: '/mahjong/moneying/' + id,
    method: 'delete'
  })
}

// 导出会员开桌中商品消费
export function exportMoneying(query) {
  return request({
    url: '/mahjong/moneying/export',
    method: 'get',
    params: query
  })
}